package insight.spring;

import java.util.List;

public class ApplicationContext {

    public ApplicationContext(String packageName) {
        initContext(packageName);
    }

    public void initContext(String packageName) {
        List<Class<?>> componetClassList = scanpackage(packageName).stream().filter(c->c.isAnnotationPresent(Component.class)).toList();
    }

    private List<Class<?>> scanpackage(String packageName) {
        return null;
    }

    public Object getBean(String name) {
        return null;
    }

    public <T> T getBean(Class<T> beanType) {
        return null;
    }

    public <T> List<T> getBeans(Class<T> beanType) {
        return null;
    }

}
